package cn.stylefeng.guns.modular.gridsystem.model.result;

import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
public class DeviceStatusAssessInfoResult implements Serializable {

    /**
     * 设备名称
     */
    @Excel(name = "设备名称", width = 20)
    private String deviceName;

    /**
     * 故障名称
     */
    @Excel(name = "故障名称", width = 20)
    private String errorName;

    /**
     * 故障初次创建时间
     */
    @Excel(name = "故障初次创建时间", databaseFormat = "yyyy-MM-dd HH:mm:ss", format = "yyyy-MM-dd HH:mm:ss", width = 20)
    private Date createdAt;

    /**
     * 故障类型
     */
    @Excel(name = "故障类型", replace = {"未知故障_0", "已知故障_1"}, width = 20)
    private Integer errorType;

    /**
     * 上报网关的编号名称
     */
    @Excel(name = "网关名称", width = 20)
    private String gatewayName;

    /**
     * 故障处理状态（未处理，已处理）
     */
    @Excel(name = "故障处理状态", replace = {"未处理_0", "已处理_1"}, width = 20)
    private Integer status;

    /**
     * 错误数量
     */
    @Excel(name = "故障数量", width = 20)
    private Integer errorCount;

}
